#pragma once
#ifndef __RESOURCE_MANAGER_H__
#define __RESOURCE_MANAGER_H__

#include <d3dx9.h>
#include "d3dUtil.h"
using namespace std;

extern IDirect3DDevice9* gd3dDevice;
extern 	ID3DXSprite* m_pSprite;

enum { 
	TEX_BACKGROUND,
	TEX_BTN_NEWGAME, TEX_HOW_TO_PLAY, TEX_OPTIONS, TEX_EXIT ,
	TEX_OPTION1, TEX_OPTION2, TEX_OPTION3, TEX_OPTION4 
};

	class ResourceManager
	{
	public:
		ResourceManager(void);
		virtual ~ResourceManager(void);

		IDirect3DTexture9* getTextureByID( int id );

		void AddTexture(LPCWSTR texName);
		static ResourceManager*	GetInstance	();
		void Release();
	private:
		static ResourceManager		*m_pResource;
		//	ID3DXSprite* m_pSprite;			//Sprite to draw texture image
		std::vector<IDirect3DTexture9*> m_buttonTextures;			
	};

#endif